<p class="Head2">Multiple Operations in Columns or Rows</p>
<p class="Paragraph">If the data of a data range is one above the other (for columns) or next to each other (for rows), select the data range together with the cell or cell range next to or below it as the target range. In the <span class="T1">Column/Row</span> field, enter the cell reference to the first cell in the data range. In the <span class="T1">Formula</span> field, enter the cell reference to the cell with the formula that applies to the data range.</p>
<p class="Head3">Examples</p>
<p class="Paragraph">You produce toys which you sell for $10 each. Each toy costs $2 to make, in addition to which you have fixed costs of $10,000 per annum. How much profit will you make in a year if you sell a particular number of toys?</p>
<p class="Paragraph">Consider the following table:</p>
<p class="Head3">Calculating With One Formula and One Variable</p>
<ol class="L1">
<li class="">
<p class="P2">To calculate the profit, first enter any number as the quantity (items sold) - in this example 2000. The profit is found from the formula Profit=Quantity * (Selling price - Direct costs) - Fixed costs. Enter this formula in B5.</p>
</li>
<li class="">
<p class="P2">In column D enter certain annual sales one under the other, e.g. in steps of 500 from 500 to 5000.</p>
</li>
<li class="">
<p class="P2">Mark the range D2:E11, and thus the values in column D and the empty cells alongside in column E.</p>
<p class="P2">With the cursor in the <span class="T1">Formulas </span><text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>field, click cell B5.</p>
</li>
<li class="">
<p class="P2">Set the cursor in the <span class="T1">Column</span> field and click cell B4. This means that: B4, the quantity, is the variable in the formula which is replaced by the marked column values.</p>
</li>
<li class="">
<p class="P2">Close the dialog with <span class="T1">OK</span>. You will see the profit in column E.</p>
</li>
</ol>
<p class="Head3">Calculating with Several Formulas Simultaneously</p>
<ol class="L2">
<li class="">
<p class="P3">Delete column E.</p>
</li>
<li class="">
<p class="P3">Enter the following formula in C5: = B5 / B4. You are now calculating the annual profit per item sold.</p>
</li>
<li class="">
<p class="P3">Select the range D2;F11, thus three columns.</p>
<p class="P3">With the cursor in the <span class="T1">Formulas</span> field, mark cells B5 thru C5.</p>
</li>
<li class="">
<p class="P3">Set the cursor in the <span class="T1">Columns</span> field and click cell B4.</p>
</li>
<li class="">
<p class="P3">Close the dialog with <span class="T1">OK</span>. You will now see the profits in column E and the annual profit per item in column F.</p>
</li>
</ol>
<p class="Head2"><help:key-word value="cross-classified tables; multiple operations" tag="kw68399_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="multiple operations; cross-classified tables" tag="kw68399_2" xmlns:help="http://openoffice.org/2000/help"/>Multiple Operations Across Rows and Columns</p>
<p class="Paragraph"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> allows you to carry out joint multiple operations for columns and rows in so-called cross-tables. The formula cell has to refer to both the data range arranged in rows and the one arranged in columns. Select the range defined by both data ranges and call the multiple operation dialog. Enter the reference to the formula in the <span class="T1">Formula</span> field. The <span class="T1">Row</span> field is used to enter the reference to the first cell of the range arranged in rows and the <span class="T1">Column</span> field the first cell of the range arranged in columns.</p>
<p class="Head3">Calculating with Two Variables</p>
<p class="Paragraph">Consider columns A and B of the sample table above. You now want to vary not just the quantity produced annually, but also the selling price, and you are interested in the profit in each case.</p>
<p class="Paragraph">Expand the table shown above. D2 thru D11 contain the numbers 500, 1000 and so on, up to 5000. In E1 through H1 enter the numbers 8, 10, 15 and 20.</p>
<p class="P4">With the cursor in the <span class="T1">Formulas </span><text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>field, click cell B5.</p>
</li>
<li class="">
<p class="P4">Set the cursor in the <span class="T1">Rows</span> field and click cell B1. This means that B1, the selling price, is the horizontally entered variable (with the values 8, 10, 15 and 20).</p>
</li>
<li class="">
<p class="P4">Set the cursor in the <span class="T1">Column</span> field and click in A1. This means that B4, the quantity, is the vertically entered variable.</p>
</li>
<li class="">
<p class="P4">Close the dialog with OK. You will see the profits in the range E2:H11. In some cases you must first press (F9) to update the table.</p>